﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DonutMgmtSystemFoundation.Helpers;

namespace DonutMgmtSystemFoundation.Controllers
{
    [Authorize]
    public class CalendarController : BaseController
    {
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public JsonResult GetEvents()
        {
            CalendarHelper helper = new CalendarHelper();
            return Json(helper.GetEvents());
        }

    }
}
